

package io.renren.modules.job.task.basedata;

import io.renren.modules.basedata.service.TollLaneUploadService;
import io.renren.modules.job.task.ITask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 测试定时任务(演示Demo，可删除)
 *
 * testTask为spring bean的名称
 *
 * @author Mark sunlightcs@gmail.com
 */
@Component("tollLaneUploadTask")
public class TollLaneUploadTask implements ITask {
	private Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	TollLaneUploadService tollLaneUploadService;


	@Override
	public void run(String params){

		logger.info("TollLaneUploadTask 定时任务正在执行，参数为：{}", params);

		try {

			tollLaneUploadService.tollLaneUpload();
		}catch (Exception e){
			e.printStackTrace();
		}
	}
}
